<% title "Sub Contractors" %>

<table>
  <tr>
    <th>Name</th>
    <th>Official Url</th>
    <th>Principal</th>
    <th>Logo Url</th>
    <th>Description</th>
    <th>Project Count</th>
  </tr>
  <% for sub_contractor in @sub_contractors %>
    <tr>
      <td><%=h sub_contractor.name %></td>
      <td><%=h sub_contractor.official_url %></td>
      <td><%=h sub_contractor.principal %></td>
      <td><%=h sub_contractor.logo_url %></td>
      <td><%=h sub_contractor.description %></td>
      <td><%=h sub_contractor.project_count %></td>
      <td><%= link_to "Edit", edit_sub_contractor_path(sub_contractor) %></td>
      <td><%= link_to "Destroy", sub_contractor, :confirm => 'Are you sure?', :method => :delete %></td>
    </tr>
  <% end %>
</table>

<p><%= link_to "New Sub Contractor", new_sub_contractor_path %></p>
